/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.Components;

import Tools.TModel;
import java.util.List;

/**
 *
 * @author Ivan
 */
public class BrowserFile extends ABrowserBuilder{

    public BrowserFile(TModel model, AObserverGUI observerGUI) {
        super(model, observerGUI);
        
    }
 

    @Override
    public void updateComponent(Object parameters) {
        List<String> result = (List<String>) parameters;

        listModel.clear();

        for(String s : result){
            listModel.addElement(s);
        }

        browserList.setSelectedIndex(index);

        Disable();
    }
    
    
}
